package com.ltj.springbootrestfuldemo.manager;

import com.ltj.springbootrestfuldemo.pojo.User;

public class UserManager {
    private User user = new User(1001L,"John",12);
    private static UserManager instance = new UserManager();

    private UserManager() {
    }

    public static UserManager getInstance() {
        return instance;
    }

    public void setUser(User user){
        this.user=user;
    }

    public User getUser(){
        return user;
    }


}
